﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GloboTicketAdmin.API.Models.Domain
{
    public class CategoryModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnDataType = "TEXT")]
        public Guid Id { get; set; } = Guid.NewGuid(); // 初始化
        [SugarColumn(ColumnName = "Name", Length = 50, IsNullable = false)] // 列名、长度、非空
        public string? Name { get; set; }
        [SugarColumn(Length = 20, IsNullable = false)] 
        public string? Lable { get; set; }
    }
}
